package com.itheima.clientAndService01;

public class MainClass02 {
    public static void main(String[] args) {
        Fu fu = new Zi();
        System.out.println(fu.num);
        fu.eat();
    }
}

class Fu{
    int num = 20;
    public void eat(){
        System.out.println("吃饭");
    }
}

class Zi extends Fu{
    int num = 10;
    public void eat(){
        System.out.println("猫吃鱼");
    }
}
